import random
hand= ["剪刀","石头","布"]
win = [["剪刀","布"],["石头","剪刀"],["布","石头"]]
tip='''
[0]:剪刀
[1]:石头
[2]:布
请输入一个数字:'''

idx=eval  (input(tip))
com = random.choice(hand)
human = hand[idx]
while idx in range(5):
    if com==human:
        print("p")
    elif [human,com]in win:
        print ("y")
    else:
        print("s")
    print("人类VS电脑的结果为:",human,"VS",com)
    break
else :
    print ("游戏结束")
